import reqests from "../utils/requests.js"
import {STATUS_CODE} from "../utils/variables.js"

export async function  getCategoryListApi(){
	const res = await reqests.request({
		url: "/category",
		method: "GET"
	})
	if(res.code!=STATUS_CODE.SUCCESS_CODE){
		uni.showToast({
			title:"获取信息地址失败，请稍后重试",
			icon:'none',
			duration:2000
		})
		return;
	}
	return res.data;
}